package org.example.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName take_three
 */
@TableName(value ="take_three")
@Data
public class Three implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 买入人id
     */
    private Integer buyId;

    /**
     * 卖出人id
     */
    private Integer sellId;

    /**
     * 买入数量
     */
    private Integer buyNum;

    /**
     * 股票单价
     */
    private BigDecimal averagePrice;

    /**
     * 股票总价
     */
    private BigDecimal sellPrice;

    /**
     * 购买时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;

    /**
     * 股票官方id
     */
    private Integer stockId;

    /**
     * 此股票唯一编号
     */
    private String volumeCode;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private String buyerName;
}